/*
* code  返回状态码
* msg  提示信息
* router 路由
* data  消息携带数据 
*
* */

PUSH_EVENT = {};
PUSH_EVENT.REQUEST_HEADER = {};
PUSH_EVENT.audio = function (str) {
    var audio = document.createElement("AUDIO");
    audio.src = "http://tts.baidu.com/text2audio?ie=UTF-8&lan=zh&text=" + str;
    audio.play();
}
PUSH_EVENT.default = function (msg) {
    var content = msg.content;
    var resp = JSON.parse(content);
    PUSH_EVENT.audio(resp.msg);
    if (resp.code == 1001) {
        my_tips_(resp.msg, function () {
            PUSH_EVENT.REQUEST_HEADER = resp;
            if(resp.router){
            	go_(resp.router);
            }
        });
    }
}
PUSH_EVENT.aps = PUSH_EVENT.default;